<#assign dev = Session.dev>
<div class="navbar navbar-default">
<div class="navbar-header">
	<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
		<span class="sr-only">切换导航栏</span>
		<span class="icon-bar"></span>
		<span class="icon-bar"></span>
		<span class="icon-bar"></span>
	</button>
	<a href="javascript:void(0)"><span class="navbar-brand"><span class="fa fa-paper-plane"></span>  实时视频</span></a>
</div>
	
<div class="navbar-collapse collapse">
<ul id="main-menu" class="nav navbar-nav navbar-right">
	<li class="visible-xs"  check-permission="main_page"><a href="${ctx}/mgr/main.html" class="nav-header"><i class="fa fa-fw fa-cogs"></i> 基本设置</a></li>
	<li class="visible-xs"  check-permission="device_mgr"><a href="${ctx}/mgr/device.html" class="nav-header"><i class="fa fa-fw fa-camera"></i> 设备</a></li>
	<li check-permission="resource_mgr"><a href="${ctx}/mgr/resource.html" class="nav-header"><i class="fa fa-fw fa-user"></i> 权限管理</a></li>
	<!--<li class="visible-xs"><a href="${ctx}/mgr/device_us.html" class="nav-header"><i class="fa fa-fw fa-camera"></i> 配置美国服务设备</a></li> -->
	<li class="dropdown hidden-xs">
		<a href="#" class="dropdown-toggle" data-toggle="dropdown">
		    <i class="glyphicon glyphicon-user padding-right-small"></i> ${dev.devAccount} <i class="fa fa-caret-down"></i>
		</a>
		<ul class="dropdown-menu">
			<li><a href="javascript:void(0)" onClick="logout()"><i class="fa fa-sign-out"></i> 注销</a></li>
		</ul>
	</li>
</ul>
</div>
</div>

<div class="sidebar-nav">
<ul>
<!-- 	<li><a href="help.html" class="nav-header"><i class="fa fa-fw fa-dashboard"></i> 个人中心</a></li> -->
	<li check-permission="main_page"><a href="${ctx}/mgr/main.html" class="nav-header"><i class="fa fa-fw fa-cogs"></i> 基本设置</a></li>
	<li check-permission="device_mgr"><a href="${ctx}/mgr/device.html" class="nav-header"><i class="fa fa-fw fa-camera"></i> 设备</a></li>
	<li check-permission="resource_mgr"><a href="${ctx}/mgr/resource.html" class="nav-header"><i class="fa fa-fw fa-user"></i> 权限管理</a></li>
	<!--<li><a href="${ctx}/mgr/device_us.html" class="nav-header"><i class="fa fa-fw fa-camera"></i> 配置美国服务设备</a></li> -->
</ul>
</div>
<script type="text/javascript" src="${ctx}/lib/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="${ctx}/lib/common.js"></script>
<script type="text/javascript">
	$(function(){
		hide();
	})
	
	function logout(){
		sessionStorage.clear();
		location.href = _ctx + "/sign_out.html";
	}
</script>